﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Mdv.wssAddins
{
    public class wssFieldTypeConverter : StringConverter 
    {
        private static StandardValuesCollection defaultTypes =
            new StandardValuesCollection(new string[] { "AllDayEvent", "Attachments", "Boolean", "Calculated", "Choice", "Computed", "ContentTypeId",
            "Counter", "CrossProjectLink", "Currency", "DateTime", "File", "GridChoice", "Guid", "Integer", "Lookup", "LookupMulti", "ModStat",
            "MultiChoice", "MultiColumn", "Note", "Number", "PageSeparator", "Recurrence", "Text", "ThreadIndex", "Threading", "URL", "User", "UserMulti",
            "WorkflowEventType", "WorkflowStatus" });
        public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
        {
            return true;
        }
        public override bool GetStandardValuesExclusive(ITypeDescriptorContext context)
        {
            return false;
        }
        public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            return defaultTypes;
        }
    }
}